package fast.loader;

import fast.data.Stat;

public class Reforge implements Comparable<Reforge>{
	private Stat from;
	private Stat to;
	private double value;
	private double ep;
	
	public Reforge(){
		from = null;
		to = null;
	}
	public Reforge(Stat f,Stat t){
		from = f;
		to = t;
	}
	public Reforge(Stat f,Stat t,double value){
		from = f;
		to = t;
		this.value = value;
	}
	public void setFrom(Stat f){
		from = f;
	}
	public Stat getFrom() {
		return from;
	}
	public void setTo(Stat t){
		to = t;
	}
	public Stat getTo() {
		return to;
	}
	public void setEP(double ep) {
		this.ep = ep;
	}

	public double getEP() {
		return ep;
	}
	
	@Override 
	public boolean equals(Object other) {
        if (!(other instanceof Reforge)) { return false; }
        Reforge o = (Reforge) other;
        if(o.getTo() != to)
        	return false;
        if(o.getFrom() != from)
        	return false;
        return true;
    }
	@Override
	public int compareTo(Reforge o) {
		return 0;
	}
	public double getValue() {
		return value;
	}
	public void setValue(double value) {
		this.value = value;
	}
}
